-- GENERATED SPELL FOR [Terrowulf Fleshripper] --


function spell0_3789(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3789', 8000, 1)
end

function Sorts_3789(pUnit, Event)
local choix_sorts_3789 = math.random(0, 0)
if choix_sorts_3789 == 0 then
pUnit:RegisterEvent('spell0_3789', 1, 1)
end
end

function mob3789_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3789', math.random(1500, 3000), 1)
end

function mob3789_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3789_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3789_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3789, 1, 'mob3789_Action')
RegisterUnitEvent(3789, 2, 'mob3789_Leave')
RegisterUnitEvent(3789, 3, 'mob3789_Kill')
RegisterUnitEvent(3789, 4, 'mob3789_Die')
